import pygame
from pygame.locals import *
from Window import *
from Button import *

class Dialog(Window):
   def __init__(self, width, height, message="Temp for Dialog Test", ok_call=None, cancel_call=None):
      Widget.__init__(self)
      Window.__init__(self, 
         (  (self.screen.get_width()/2) - (width/2), 
            (self.screen.get_height()/2) - (height/2),
            width, 
            height), 'Question', pygame.font.get_default_font())
      self.add(Button((10, self.rect.h-25, 60, 18), "OK", pygame.font.get_default_font(), 12))
      self.add(Button((self.rect.w-70, self.rect.h-25, 60, 18), "Cancel", pygame.font.get_default_font(), 12))
      self.add(Text((   10, 35, 0, 0), "Would you like to continue?", pygame.font.get_default_font(), 12))